package com.example.zheng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zheng
 * @since 2022-01-11
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Repairbill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mainId", type = IdType.AUTO)
    private Integer mainId;

    @TableField("userNumber")
    private String userNumber;

    /**
     * 维修类型
     */
    @TableField("repairType")
    private String repairType;

    /**
     * 维修地点
     */
    private String building;

    private Integer number;

    @TableField("reportTime")
    private LocalDateTime reportTime;

    /**
     * 报修描述
     */
    @TableField("reportDesc")
    private String reportDesc;

    @TableField("reportImage")
    private String reportImage;

    /**
     * 维修状态,0 为待分配,1 为可抢单,2 为维修中,3为待评价,4为异常单,5为已评价


     */
    @TableField("repairState")
    private Integer repairState;

    /**
     * 维修人员id
     */
    @TableField("repID")
    private Integer repID;

    @TableField("repairTime")
    private LocalDateTime repairTime;

    /**
     * 维修描述
     */
    @TableField("repairDesc")
    private String repairDesc;

    @TableField("repairImage")
    private String repairImage;

    /**
     * 维修评论
     */
    private String comment;

    /**
     * 异常原因
     */
    @TableField("errorReason")
    private String errorReason;


    /**
     * 异常建议
     */
    @TableField("errorSuggest")
    private String errorSuggest;

    /**
     * 异常详情
     */
    @TableField("errorDetail")
    private String errorDetail;

}
